@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Creepster&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #00ff41;
    font-family: 'Orbitron', monospace;
    overflow: hidden;
}

#game-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.screen.active {
    opacity: 1;
    pointer-events: all;
}

h1 {
    font-family: 'Creepster', cursive;
    font-size: 4em;
    margin-bottom: 0.2em;
}

.glitch {
    position: relative;
    color: #00ff41;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0% { text-shadow: 0 0 5px #00ff41, 0 0 10px #00ff41; }
    20% { text-shadow: -2px 0 #ff0040, 2px 0 #00ff41; }
    40% { text-shadow: 2px 0 #ff0040, -2px 0 #00ff41; }
    60% { text-shadow: 0 0 5px #00ff41, 0 0 10px #00ff41; }
}

.subtitle {
    font-size: 1.2em;
    margin-bottom: 2em;
    opacity: 0.7;
}

.audio-warning {
    font-size: 0.9em;
    margin-bottom: 1.5em;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.btn {
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    padding: 15px 30px;
    font-family: 'Orbitron', monospace;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn:hover {
    background: #00ff41;
    color: #0a0a0a;
    box-shadow: 0 0 20px #00ff41;
}

#game-ui {
    padding: 20px;
    align-items: flex-start;
    justify-content: flex-start;
}

#health-bar {
    width: 200px;
    height: 20px;
    border: 1px solid #00ff41;
    margin-bottom: 10px;
}

#health-fill {
    height: 100%;
    background: #00ff41;
    transition: width 0.3s ease;
}

#hiding-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#hiding-indicator.show {
    opacity: 1;
}

select {
    background: #0a0a0a;
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 10px;
    margin-left: 10px;
}

#joystick-container {
    width: 120px;
    height: 120px;
    position: fixed;
    bottom: 50px;
    left: 50px;
    z-index: 1000;
    pointer-events: all;
}

@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    .btn { padding: 12px 24px; font-size: 0.9em; }
    
    #game-ui {
        font-size: 0.9em;
    }
    
    #health-bar {
        width: 150px;
        height: 15px;
    }
}